<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreatePositionSuperviseSheetTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('position_supervise_sheet', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedBigInteger('supervise_id',false)->default(0)->comment('监管id');
            $table->unsignedBigInteger('paper_id',false)->default(0)->comment('问卷题目id');
            $table->string('question')->nullable()->comment('题目');
            $table->string('options')->nullable()->comment('选项');
            $table->string('answer_txt')->nullable()->comment('回答答案');
            $table->text('extend_images')->nullable()->comment('补充图片');
            $table->text('extend_txt')->nullable()->comment('补充文本');
            $table->timestamps();
            $table->softDeletes();
            $table->engine="InnoDb";
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('position_supervise_sheet');
    }
}
